package com.sgj.springcloud.alibaba.service;
import com.sgj.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author 沈国纪
 * @date 2021/6/6 10:24
 */
@FeignClient("seata-account-service")
public interface AccountService {

	@PostMapping("/account/decrease")
	CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}